﻿#region

using Newtonsoft.Json;
using System.Collections.Generic;

#endregion

namespace PTCN.CrossPlatform.BettingGame.Bingo.Models
{
    public class SedieResult
    {
        [JsonIgnore]
        public long AccountId { get; private set; }

        public long Revenue { get; private set; }

        [JsonIgnore]
        public string Username { get; private set; }
        public List<SedieBetLog> Details { get; private set; }

        public SedieResult(long accountId, string username)
        {
            AccountId = accountId;
            Username = username.Substring(0);
            Revenue = 0;
            Details = new List<SedieBetLog>();
        }

        internal void UpdateRevenue(long change)
        {
            Revenue += change;
        }

        internal void Refresh()
        {
            Revenue = 0;
            Details = new List<SedieBetLog>();
        }
    }
}